package com.devops.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.devops.admin.model.DOSProjectGroupUserRelation;
import com.devops.admin.po.DOSProjectGroupUserRelationPo;
import com.devops.admin.po.DOSProjectGroupUserRolePo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName DOSProjectGroupUserRelationMapper
 * @Description TODO
 * @Author heyabo
 * @Date 2022/9/5 15:50
 * @Version 1.0
 **/
@Mapper
public interface DOSProjectGroupUserRelationMapper extends BaseMapper<DOSProjectGroupUserRelation> {
    /**
     * @Author heyabo
     * @Description 获取项目组人员的绑定关系（项目负责人或项目组成员）
     * @Date 17:19 2022/9/5
     * @Param [projectGroupId]
     * @return java.util.List<com.devops.admin.po.DOSProjectGroupUserRelationPo>
     **/
    List<DOSProjectGroupUserRolePo> getBindUser(Integer projectGroupId, String userType, String roleCodes);

    List<DOSProjectGroupUserRelationPo> getProjectGroupUsers(Integer projectGroupId);

}
